package com.sip.stream.utils.zfy.handler;

import android.annotation.SuppressLint;
import android.util.Log;

import com.sip.stream.helper.GS28181Helper;
import com.sip.stream.utils.zfy.voice.BeepType;
import com.sip.stream.utils.zfy.ZFYPlatformRemoteText;

import io.reactivex.Single;

public class StandardGB28181TranHandler extends IGB28181TranHandler {
    private static final String TAG = "StandardGB28181TranHandler";

    @Override
    public void afterRegisterSuccess() {
    }

    @SuppressLint("LongLogTag")
    @Override
    public int onTransDataNotify(String str, int i) {
        Log.i(TAG, "onTransDataNotify " + str);
        return 199;
    }

    @Override
    public Single<Boolean> bindUser(String str, String str2) {
        return Single.error(new Exception("not support"));
    }

    @Override
    public void postDeviceSOS() {
        GS28181Helper.getInstance().postDeviceAlarm(1, BeepType.SOS);
    }

    @Override
    public void postAlarmTypeToPlatform(String str, String str2) {
        GS28181Helper.getInstance().postDeviceAlarm(3, str2);
    }

    @Override
    public Single<Boolean> postRemoteText(ZFYPlatformRemoteText zFYPlatformRemoteText) {
        return Single.error(new Exception("not support"));
    }
}
